package com.lp.learn.learnspringboot.redis;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

@Service
public class JsonRedisService extends AbstractRedisService<Object>{

    @Autowired
    private RedisTemplate redisTemplate;

    public boolean set(String key,Object value){
        return this.set(redisTemplate,key,value);
    }
    public boolean set(String key,Object value,int timeout,TimeUnit timeUnit){
        return this.set(redisTemplate,key,value,timeout,timeUnit);
    }
}
